<?php
//Split a string, can use in Chinese
function mbstringtoarray($str,$charset) {
    $strlen=mb_strlen($str);
    while($strlen){
        $array[]=mb_substr($str,0,13,$charset);
        $str=mb_substr($str,13,$strlen,$charset);
        $strlen=mb_strlen($str);
    }
    return $array;
}
